package com.zwy.Shopping.dao;

import com.zwy.Shopping.model.OrderItem;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单明细操作
 */

public interface OrderItemDao {
    //获得所有订单明细
    public List<OrderItem> getAllOrderItem();
    //通过订单号获得订单明细
    public List<OrderItem> getOrderItemByOrderId(int orderId);
    //生成订单明细
    public boolean generateOrderItem(int orderId, int product_id, BigDecimal price,int quantity);

}
